package com.practice.book.model;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2025-01-21
 * Time: 15:40
 */
@Data
public class PageRequest {
    private Integer currentPage = 1;
    private Integer pageSize = 10;

    private Integer offset;

    public Integer getOffset() {
        return (currentPage - 1) * pageSize;
    }
}
